GetCompressedPixMapInfo
TheGetCompressedPixMapInfo
function allows your application to retrieve information about a compressed image.
pascal OSErr GetCompressedPixMapInfo (PixMapPtr pix, ImageDescriptionHandle *desc, Ptr *data, long *bufferSize, DataProcRecord *dataProc, ProgressProcRecord *progressProc);
pix
- Points to a structure that holds encoded compressed image data.
desc
- Contains a pointer to a field that is to receive a handle to the image description structure that defines the compressed image. If you are not interested in this information, you may specify
nil
in this parameter.data
- Contains a pointer to a field that is to receive a pointer to the compressed image data. If the entire compressed image cannot be stored at this location, you can define a data-loading function for this operation (see the discussion of the
dataProc
parameter to this function). If you are not interested in this information, you may specifynil
in this parameter.bufferSize
Contains a pointer to a field that is to receive the size of the buffer to be used by the data-loading function specified by thedataProc
parameter. If there is no data-loading function defined for this operation, this parameter is ignored. If you are not interested in this information, you may specifynil
in this parameter.dataProc
- Contains a pointer to a data-loading function structure. If there is not enough memory to store the compressed image, the decompressor calls a function you provide that loads more compressed data (see "Data-Loading Functions" beginning on page 3-143 for more information about data-loading functions). If there is no data-loading function for this image, the function sets the
dataProc
field in the function structure tonil
. If you are not interested in this information, you may specifynil
in this parameter.progressProc
- Contains a pointer to a progress function structure. During a decompression operation, the decompressor may occasionally
call a function you provide in order to report its progress
(see "Progress Functions" beginning on page 3-146 for more information about progress functions). If there is no progress function for this image, the function sets theprogressProc
field in the function structure tonil
. If you pass a value of -1, you obtain a standard progress function. If you are not interested in this information, you may specifynil
in this parameter.DESCRIPTION
The data in the compressed image has been encoded in aPixMap
structure with theSetCompressPixMapInfo
function. This is the kind of pixel map that may be passed into theStdPix
function. If you pass a normal, non-encoded pixel map,GetCompressedPixMapInfo
returns aparamErr
result code. You use
theGetCompressedPixMapInfo
function if you are intercepting calls to theStdPix
function.SPECIAL CONSIDERATIONS
The pixel map structure filled in by theGetCompressedPixMapInfo
function should not be used by any other Macintosh functions. It is only to be used by theStdPix
function.RESULT CODES
paramErr -50 Invalid parameter specified SEE ALSO
You can set information about a compressed pixel map by calling theSetCompressedPixMapInfo
function, which is described in the previous section.